package com.etone.smartAudit.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 存证附件上传文件
 * </p>
 *
 * @author jiayen
 * @since 2021-06-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("d_certificate_upload_file")
@ApiModel(value = "CertificateUploadFile对象", description = "存证附件上传文件")
public class CertificateUploadFile implements Serializable {

    private static final long serialVersionUID = 1L;

    /***
     * 0-执行人附件，1-存证单附件
     */
    public final static Integer HAND_PERSON_FILE = 0;
    public final static Integer CERTIFICATE_FILE = 1;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "vcId")
    private String id;

    @ApiModelProperty(value = "文件请求地址")
    @TableField("vcUrl")
    private String url;

    @ApiModelProperty(value = "上传时间")
    @TableField("dtCreateTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "文件名称")
    @TableField("vcName")
    private String name;

    @ApiModelProperty(value = "文件原始名称")
    @TableField("vcOriginName")
    private String originName;

    @ApiModelProperty(value = "文件大小")
    @TableField("douSize")
    private Double size;

    @ApiModelProperty(value = "扩展名")
    @TableField("vcExtension")
    private String extension;

    @ApiModelProperty(value = "文件相对路径")
    @TableField("vcPath")
    private String path;

    @ApiModelProperty(value = "区块链上链返回hash值")
    @TableField("vcHashKey")
    private String hashKey;

    @ApiModelProperty(value = "0-执行人附件，1-存证单附件")
    @TableField("intType")
    private Integer type;

    @ApiModelProperty("相关联id")
    @TableField("intTelativeId")
    private Integer  relativeId;

    @ApiModelProperty(value = "文件md5值")
    @TableField("vcFileMd5")
    private String fileMd5;

    @ApiModelProperty(value = "文件所在的主路径")
    @TableField(exist = false)
    private String host;
}
